package com.cskaoyan.bean.BO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author wenkaikai
 * @since 2022/08/14 08:47
 */
@Data
public class AdminCouponBO {
    private Integer id;
    private String name;
    private String desc;
    private String tag;
    @Min(0)
    private Integer total;
    private BigDecimal discount;
    @Min(0)
    private BigDecimal min;
    @Min(value = 0,message = "限领数量不能为负数！")
    private Short limit;

    private Short type;

    private Short status;

    private Short goodsType;

    private Integer[] goodsValue;

    private String code;

    private Short timeType;
    @Min(0)
    private Short days;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private Boolean deleted;
}